Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose --input-width and --button-width CSS variables on the ComboboxOptions component #3057

Merged
merged 3 commits into from
Mar 26, 2024

Conversation

RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Mar 26, 2024

This PR exposes the --input-width and --button-width CSS variables in the ComboboxOptions component.

This allows users to make the ComboboxOptions component the same width as the ComboboxInput or ComboboxButton or a combination of both.

The reason I added both is just because it doesn't hurt to have both, and when testing it on the countries example (https://headlessui-react-git-feat-add-combobox-input-width-tailwindlabs.vercel.app/combobox/combobox-countries) it was useful to have both.

Copy link

vercel bot commented Mar 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2024 3:45pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2024 3:45pm

@RobinMalfait RobinMalfait changed the title Expose --input-width and --button-width variables on the ComboboxOptions component Expose --input-width and --button-width CSS variables on the ComboboxOptions component Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants